package com.pojotest.pojotest.controller;

import com.pojotest.pojotest.services.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/v1")
public class TestController {

    @Autowired
    TestService testService;

    @RequestMapping("/hi")
    public String hi() {
        String text = testService.testme();
        return "hi" + text;
    }
}
